CPPFLAGS := $(subst strict-dwarf,,$(CPPFLAGS))

LIBS += -L/usr/local/lib -lrdkafka
LIBS += -L/usr/local/lib -lrdkafka++

INCLUDEPATH += -I/usr/local/include/librdkafka

all: main.cpp ./src/operate_config.cpp ./src/ftp.cpp ./src/kafka.cpp
	$(CXX) -o test -Wall -O2 $? -Iinclude $(LIBS) $(INCLUDEPATH) $(CPPFLAGS) -g

check:
	valgrind --tool=memcheck --leak-check=yes --leak-check=full --dsymutil=yes ./test

.PHONY:clean
clean: test
	$(RM) $?
